<!DOCTYPE html>
<html>
<head>
        <title>Select Result</title>
    </head>
    <body background="rose.jpg" text="#FDEEF4">
<?php
$con = mysql_connect("localhost","root","");
if (!$con){
  die('Could not connect: ' . mysql_error());
}

mysql_select_db("cs2102_db", $con);

$result = mysql_query("SELECT * FROM Flowers");

echo "<table border ='1'>
<tr>
<th>name</th>
<th>category</th>
<th>occasion</th>
<th>quantity</th>
<th>color</th>
<th>size</th>
<th>price</th>
</tr>";

While($row=mysql_fetch_array($result))
{
   echo "<tr>";
  echo "<td>" . $row['fname'] . "</td>";
  echo "<td>" . $row['category'] . "</td>";
  echo "<td>" . $row['occasion'] . "</td>";
  echo "<td>" . $row['quantity'] . "</td>";
  echo "<td>" . $row['color'] . "</td>";
   echo "<td>" . $row['size'] . "</td>";
  echo "<td>" . $row['price'] . "</td>";
  echo "</tr>";
}
echo"</table>";


mysql_close($con);
?>
</body>